<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>授权成功</title>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
</head>
<body>
<input id="status" value="{$status}" type="hidden">
</body>
<script>
var status=document.getElementById('status').value;
if (status==1){
    wx.miniProgram.postMessage({ data: '授权成功' })
    wx.miniProgram.navigateBack({delta: 1})
}
</script>
</html>
